
package com.pm2.entity.personnel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicUpdate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 项目开发人员
 * @author qin
 *
 */
@Entity
@Table(name="db_pm2_pers_developer")
@DynamicUpdate
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Developer {
	// @Fields id : 项目主键
	@Id @Column(name="id")
	@GeneratedValue(strategy=GenerationType.AUTO)
	int id;	 
	
	// @Fields project_id : 项目编号
	int project_id;
	
	// @Fields developer_id : 开发人员编号
	int user_id;
	
	// @Fields task_id : 任务编号 对应于 MasterPlan 的编号
	int masterplan_id;
	
	String name;
	
}
